<?php

interface IPost {
    /*
     *
     */

    public function getPostByPid($pid);

    /*
     *
     */

    public function getPostListByUid($uid, $type = null);

    /*
     *
     */

    public function getPostListByGid($gid, $type = null);

    /*
     *
     */

    public function getReplyList($pid, $pnum, $psize);

    /*
     *
     */
    public function addUserPost($title, $content, $type, $uid, $gid = 0,  $category_id = 0, $config = null);
    
    /*
     *
     */

    public function editPost($pid, $title, $content, $config = null);

    /*
     *
     */

    public function removePost($pid);

    /*
     *
     */

    public function forwardPost($pid);

    /*
     *
     */

    public function replyPost($replyData);
}
